export type OptionType = {
    value: string
    text: string
}

export type QuestionRadioPropsType = {
    title?: string
    isVertical?: boolean
    options?: OptionType[]
    value?: string

    onChange?: (newProps: QuestionRadioPropsType) => void
    disable?: boolean
}

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
    title: '单选标题',
    isVertical: false,
    options: [
        {
            value: '选项1',
            text: '选项1'
        },
        {
            value: '选项2',
            text: '选项2'
        },
        {
            value: '选项3',
            text: '选项3'
        }
    ],
    value: ''
}

export type QuestionRadioStatPropsType = {
    stat: Array<{ name: string; count: number }>
}